﻿using System.Collections.Generic;


namespace BL
{
		
		public class Conf
		{

				#region Singleton Instantiation
				Conf () { RegisterVariables (); }
				public static Conf Instance
				{
						get { return Singleton.instance; }
				}
				class Singleton
				{
						static Singleton () { }
						internal static readonly Conf instance =
                 new Conf ();
				}
				#endregion
				private IDictionary<string, string> _innerHash = new Dictionary<string, string> ();
				public IDictionary<string, string> Vars
				{
						get { return _innerHash; }
				}


				private void RegisterVariables ()
				{
						
						_innerHash.Add ( "ApplicationTitle" , Resources.GV.ApplicationTitle );
						_innerHash.Add ( "AppVersion" , Resources.GV.AppVersion );
						
				} //eof method RegisterVariables
		} //eof class Conf
} //eof namespace

//copypaste access conf variables BL.Conf.Instance.Vars [ "varName" ] would give you "theVarName